package top.buluoluo.productservice.enums;

import lombok.Getter;

@Getter
public enum TargetTypeMethod {
    SPU("商品SKU"),
    SKU("商品SPU");

    private final String description;


    TargetTypeMethod(String description) {
        this.description = description;
    }
    public static TargetTypeMethod fromValue(String value) {
        for (TargetTypeMethod method : values()) {
            if (method.name().equalsIgnoreCase(value)) {
                return method;
            }
        }
        throw new IllegalArgumentException("未知折扣类型: " + value);
    }
}
